package service;

public class ServiceFactory {
    public static <T>T getIntance(String classname){
        try {
            Class c = Class.forName("service.impl."+classname);
            return (T)c.newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
